let nav = document.querySelector('nav');
let liList = nav.querySelectorAll('li');

liList.forEach(function (item) {
    item.addEventListener('mouseover', function () {
        this.style.color = "red";
    });

    item.addEventListener('mouseout', function () {
        this.style.color = "";
    });
});


